package com.zzyl.controller;

import com.zzyl.base.ResponseResult;
import com.zzyl.dto.AlertDataPageQueryDto;
import com.zzyl.service.AlertDataService;
import com.zzyl.vo.AlertDataVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description AlertDataController
 * @Author Hua Caoxing
 * @Data 2025-09-15
 */
@RestController
@RequestMapping("/alert-data")
public class AlertDataController {

    @Autowired
    private AlertDataService alertDataService;

    @GetMapping("/pageQuery")
    public ResponseResult<List<AlertDataVo>> pageQuery(AlertDataPageQueryDto alertDataPageQueryDto) {
        List<AlertDataVo> alertDataVoList = alertDataService.pageQuery(alertDataPageQueryDto);

        return ResponseResult.success();
    }
}
